package ai.people.netmon.framework.domain.archives.entity;

import ai.people.netmon.framework.domain.archives.request.GangGroupOrgSaveOrUpdateRequest;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author zhenglin
 * @date 2022/6/24
 */
@Data
@NoArgsConstructor
public class GangGroupMembersBO{

    private String vid;
    private String parentId;
    /**
     * 档案ID
     */
    private String personArchivesId;
    /**
     * 团伙身份
     */
    private String groupIdentity;
    /**
     * 危险程度
     */
    private String degreeOfDanger;

    private Long updateTime;

    public GangGroupMembersBO(String vid,String parentId, GangGroupOrgSaveOrUpdateRequest root) {
        this.vid = vid;
        this.parentId = parentId;
        this.personArchivesId = root.getArchivesId() == null ? null : root.getArchivesId().toString();
        this.groupIdentity = root.getGroupIdentity();
        this.degreeOfDanger = root.getDegreeOfDanger() == null ? null : root.getDegreeOfDanger().toString();
    }
}
